<?php
/**
 * Date: 2017/4/13
 * Date: 2017/4/10
 * Author:DuanHui
 */
namespace app\api\validate;
use think\Db;
use tool\Common;
//验证规则

class User extends Base{
      //新增一个用户
    public static function  replacePassword(){
        return [
            'rule' => [
                'password'=>'confirm:rePassword',
            ],
            'msg' => [
                'password.confirm'=>'两次输入密码不一致',
            ]
        ];
    }

    //批量删除
    public static function  deleteUser(){
        return [
            'rule' => [
                'userIDS'=>'require|array'
            ],
            'msg' => [

                'userID.require'=>'不能为空',
                'password.array'=>'必须是数组'
            ]
        ];
    }
}